package p300;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

class Solution {
    int[] nums = null;

    public Solution(int[] nums) {
        this.nums = nums;
    }

    /**
     * Resets the array to its original configuration and return it.
     */
    public int[] reset() {
        return nums;
    }

    /**
     * Returns a random shuffling of the array.
     */
    public int[] shuffle() {
        List<Integer> ints = Arrays.stream(nums).boxed().collect(Collectors.toList());
        Collections.shuffle(ints);
        return ints.stream().mapToInt(Integer::valueOf).toArray();
    }

    public static void main(String[] args) {
    }
}
